﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using _4T.BLL;
using _4T.Data;

namespace _4T.ASCX
{
    public partial class ProfileApproveListControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadConsiderList();
        }

        private void LoadConsiderList()
        {
            rptProfile.DataSource = new ConsiderAndDecideBLL().GetAllConsiderAndDecide().GroupBy(n => n.ProfileName).Select(n => n.First());
            rptProfile.DataBind();
        }
    }
}